package com.yiguo.logistics.entity.model;

import java.io.Serializable;
import java.util.List;

public class ModOrder implements Serializable
{
   private static final long serialVersionUID = -7062210544600464481L;
   public String getOrderCode()
   {
      return OrderCode;
   }
   public void setOrderCode(String orderCode)
   {
      OrderCode = orderCode;
   }
   public String getSerialNumber()
   {
      return SerialNumber;
   }
   public void setSerialNumber(String serialNumber)
   {
      SerialNumber = serialNumber;
   }
   public String getDeliveryDate()
   {
      return DeliveryDate;
   }
   public void setDeliveryDate(String deliveryDate)
   {
      DeliveryDate = deliveryDate;
   }
   public String getTotalPrice()
   {
      return TotalPrice;
   }
   public void setTotalPrice(String totalPrice)
   {
      TotalPrice = totalPrice;
   }
   public String getConsignee()
   {
      return Consignee;
   }
   public void setConsignee(String consignee)
   {
      Consignee = consignee;
   }
   public String getAddress()
   {
      return Address;
   }
   public void setAddress(String address)
   {
      Address = address;
   }
   public String getOrderState()
   {
	  if(OrderState.equals("1"))
	  {
		 return "已下未确认";
	  }
	  else if(OrderState.equals("2"))
	  {
		 return "已下并且确认";
	  } 
	  else if(OrderState.equals("4"))
	  {
		 return "配送中8";
	  } 
	  else if(OrderState.equals("8"))
	  {
		return "完成未付款";
	  } 
	  else if(OrderState.equals("16"))
	  {
		return "失败";
	  } 
	  else if(OrderState.equals("32"))
	  {
		return "已分配";
	  } 
	  else if(OrderState.equals("64"))
	  {
		return "完成已付款";
	  } 
	  else 
	  { 
		return ""; 
	  }
   }
   public void setOrderState(String orderState)
   {
      OrderState = orderState;
   }
   public String getPaymentType()
   {
      return PaymentType;
   }
   public void setPaymentType(String paymentType)
   {
      PaymentType = paymentType;
   }
   public String getPaymnetPrice()
   {
      return PaymnetPrice;
   }
   public void setPaymnetPrice(String paymnetPrice)
   {
      PaymnetPrice = paymnetPrice;
   }
   public List<ModCommodity> getCommodityList()
   {
      return commodityList;
   }
   public void setCommodityList(List<ModCommodity> commodityList)
   {
      this.commodityList = commodityList;
   }

   public List<ModPayType> getPayTypeList()
   {
      return payTypeList;
   }
   public void setPayTypeList(List<ModPayType> payTypeList)
   {
      this.payTypeList = payTypeList;
   }
   
   private String OrderCode;
   private String SerialNumber;
   private String DeliveryDate;
   private String TotalPrice;
   private String Consignee;
   private String Address;
   private String OrderState;
   private String PaymentType;
   private String PaymnetPrice;
   private List<ModCommodity> commodityList;
   private List<ModPayType> payTypeList;
}
